package cn.cdutetc.library.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 借阅信息实体类
 */
@Data
@TableName("borrow_record")
public class Borrow {

    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer borrowId;

    private Integer userId;

    private Integer itemId;

    private LocalDateTime borrowDate;

    private LocalDateTime dueDate;

    private LocalDateTime returnDate;

    /**
     * 续借次数
     */
    private Integer renewCount;

    private String status;
}